package _2类中使用泛型;

public class TestDemo {
public static void main(String[] args) {
		
		
		
		Point p = new Point();
		p.x = 100;
		p.y = 200;
		System.out.println(p);
		
		Point p2 = new Point();
		p2.x = 100.0;
		p2.y = 200.0;
		System.out.println(p2);
		
		Point p3 = new Point();
		p3.x = "100.0";
		p3.y = "200.0";
		System.out.println(p2);
		
		Point<Integer> p4 = new Point<>();
		p4.x = 100;
		p4.y = 200;
		System.out.println(p4);
		
		
//		Student stu1 = new Student();
//		stu1.id = "1001";
//		stu1.sex = 1;
//		stu1.name = "张三";
		
		Student<Integer,String> stu1 = new Student();
		stu1.id = 1001;
		stu1.sex = "男";
		stu1.name = "张三";
	}

}